From: kfraser@localhost.localdomain Date: Tue, 18 Sep 2007 14:09:57 +0000 (+0100) Subject: Evaluate XEN_GUEST_HANDLE_64 twice. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14937^2~73 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=d308f9ebc60721f67c1d536735dcdefba9df2b69;p=xen.git Evaluate XEN_GUEST_HANDLE_64 twice. This fixes a build error for PV guests (OpenBSD, NetBSD) where the use of XEN_GUEST_HANDLE_64(uint8_t) leads to a build error because uint8_t is a #define and not a typedef. Signed-off-by: Christoph Egger --- diff --git a/xen/include/public/arch-x86/xen-x86_32.h b/xen/include/public/arch-x86/xen-x86_32.h index bf9b1d5f31..37d3bfa183 100644 --- a/xen/include/public/arch-x86/xen-x86_32.h +++ b/xen/include/public/arch-x86/xen-x86_32.h @@ -119,7 +119,8 @@ (hnd).p = val; \ } while ( 0 ) #define uint64_aligned_t uint64_t __attribute__((aligned(8))) -#define XEN_GUEST_HANDLE_64(name) __guest_handle_64_ ## name +#define __XEN_GUEST_HANDLE_64(name) __guest_handle_64_ ## name +#define XEN_GUEST_HANDLE_64(name) __XEN_GUEST_HANDLE_64(name) #endif #ifndef __ASSEMBLY__